package com.tinyideatech.system.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.github.binarywang.wxpay.bean.result.WxPayUnifiedOrderResult;
import com.tinyideatech.system.entity.CarRmonOrder;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;

/**
 * @author zhangy-5
 * @date 2019-12-15
 */
public interface ICarRmonOrderService extends IService<CarRmonOrder> {

    String ip(HttpServletRequest request);

    boolean verifyWxPayUnifiedOrderResult(WxPayUnifiedOrderResult result, String deviceId, String outTradeNo, String expireTime);

    boolean verifyNotifyResult(WxPayOrderNotifyResult orderNotifyResult, String xmlData);

    JSONObject compareQRcodeTime(String deviceId);

    JSONObject registerProvider(String deviceId, String mobile, String password, String code) throws Exception;

    JSONObject editPwdProvider(String deviceId, String mobile, String password, String code) throws Exception;

    JSONObject resetPwdProvider(String deviceId, String mobile, String password, String code) throws Exception;

    /**
     * 视频监控开通服务日期
     *
     * @return
     */
    Date startServiceTime(String deviceId);

    XSSFWorkbook downloadRecorder();

     boolean test(String num);
}